from backend import settings


class JwtConfig:
    admin_secret_key = getattr(settings, 'SKY_JWT')['ADMIN_SECRET_KEY']
    admin_ttl = getattr(settings, 'SKY_JWT')['ADMIN_TTL']
    admin_token_name = getattr(settings, 'SKY_JWT')['ADMIN_TOKEN_NAME']

    user_secret_key = getattr(settings, 'SKY_JWT')['USER_SECRET_KEY']
    user_ttl = getattr(settings, 'SKY_JWT')['USER_TTL']
    user_token_name = getattr(settings, 'SKY_JWT')['USER_TOKEN_NAME']
